package com.zee.solr;

import org.apache.lucene.analysis.util.CharTokenizer;
import org.apache.lucene.util.AttributeFactory;

/**
 * @author chenzhiqiang
 * @date 2018-03-26 14:49:33
 */

public class MyVerticalLineTokenizer extends CharTokenizer {
	public MyVerticalLineTokenizer() {

	}

	public MyVerticalLineTokenizer(AttributeFactory factory) {
		super(factory);
	}

	/**
	 * 参数的值为ASCII的值 .对应的值为46
	 */
	protected boolean isTokenChar(int arg0) {
		return !(arg0 == 46);
	}

}
